package com.task.controller;

import com.task.common.RandomValidateCode;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author jiafujun
 * 2020年03月24日 09:41:00
 */
@RestController
@RequestMapping(value = "/comm")
public class CommonController {
    @RequestMapping("/code")
    public void getCode(HttpServletRequest request, HttpServletResponse response) {
        RandomValidateCode.getRandcode(request, response);
    }
}
